From: Jochen Sprickerhof Date: Thu, 13 Oct 2022 17:52:57 +0000 (+0200) Subject: Remove constexpr X-Git-Tag: archive/raspbian/11.0.0+r48-4+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=6b1f8ddbdf70807a460084e315ee0e92cfed32a6;p=android-platform-art.git Remove constexpr Fixes: error: constexpr variable 'kHostAltSigStackSize' must be initialized by a constant expression Gbp-Pq: Name 0016-Remove-constexpr.patch --- diff --git a/runtime/thread_linux.cc b/runtime/thread_linux.cc index 3ed4276..e057de9 100644 --- a/runtime/thread_linux.cc +++ b/runtime/thread_linux.cc @@ -33,7 +33,7 @@ static void SigAltStack(stack_t* new_stack, stack_t* old_stack) { // handler or do a stack unwind, this is too small. We allocate 32K // instead of the minimum signal stack size. // TODO: We shouldn't do logging (with locks) in signal handlers. -static constexpr int kHostAltSigStackSize = +static int kHostAltSigStackSize = 32 * KB < MINSIGSTKSZ ? MINSIGSTKSZ : 32 * KB; void Thread::SetUpAlternateSignalStack() {